///  author : douyu
///  date : 2023/12/26 20:45
///  description : source_info_model

import 'package:json_annotation/json_annotation.dart';

part 'source_info_model.g.dart';

@JsonSerializable()
class SourceInfoModel {
  final String name;
  final String icon;
  final List<String> sources;
  late bool isChoose = false;

  SourceInfoModel({required this.name, required this.sources,this.isChoose = false,this.icon = ""});

  //创建的实力方法
  factory SourceInfoModel.fromJson(Map<String, dynamic> json) => _$SourceInfoModelFromJson(json);

  //user转化为json数据
  Map<String, dynamic> toJson() => _$SourceInfoModelToJson(this);
}